package pl.kozulowski.validation {
	
	public class ValidationUtils extends {
		
		public static function validateEmail($mail:String):Boolean {
			var reg:RegExp = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/;
			if(reg.exec($mail)) return true;
			else return false;
		}
	}
}